<html>
<head>
     <title>Help: m2diag</title>
</head>
<body>
     <center><table><tbody>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd;">
                  <h4>m2diag</h4>Transform a 1 dimensional matrix to a square one with elements on the diagonal
                  <br><small>Last modified: 16-Sep-2010 12:31:56</small>

          </tr>
          <tr>
             <td style="border: 0px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd;">
                  <a href="http://guillaumemaze.googlecode.com/svn/trunk/matlab/codes/matrix/m2diag.m">Download here</a>
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #fff; font-size:12px;">
                  <br>% m2diag Transform a 1 dimensional matrix to a square one with elements on the diagonal<br>%<br>% C = m2diag(C)<br>% <br>% Transform the matrix C(1,N) or C(N,1) to a square matrix <br>% of dimensions NxN with elements from C on the diagonal<br>%<br>% Example:<br>%	C = [1 ; 2 ; 4 ; 5]<br>%	m2diag(C)<br>%<br>% See also:<br>%	m2cols<br>%<br>% Created: 2010-06-17.<br>% All rights reserved.
             </td>
          </tr>
          <tr>
             <td style="border: 1px solid rgb(170, 170, 170); padding: 5px; background-color: #ddd; font-size:12px;">
                  Last update: 2011 March 04, 17:46<br>
                  Created by Guillaume Maze<br>
                  More informations at: <a href="http://codes.guillaumemaze.org/matlab">codes.guillaumemaze.org/matlab</a><br>
             </td>
          </tr>
     </tbody></table></center>
</body>
</html>
